﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace rajitWorkTwo
{
    class workLog
    {
        // CLASS VARIABLES

        public Texture2D sprite;
        public Vector2 position;
        public Vector2 center;

        public int pixelHeight = 0;
        public int pixelWidth = 0;

        public int realHeight = 0;
        public int realWidth = 0;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="loadedTexture">2D Texture of the sprite</param>
        /// <param name="position">Position of the texture</param>
        public workLog(Texture2D loadedTexture, Vector2 logPosition)
        {
            sprite = loadedTexture;
            center = new Vector2(sprite.Width / 2, sprite.Height / 2);
            position = logPosition;

            pixelHeight = gVar.workLogPixelHeight;
            pixelWidth  = gVar.workLogPixelWidth;

            realHeight = gVar.workLogRealHeight;
            realWidth  = gVar.workLogRealWidth;

            sprite = logControl.modifyWorkLogSprite(sprite, pixelHeight, pixelWidth);

            
        }

    }
}
